﻿@model IEnumerable<Sohobloo.SoAuth.Web.Models.FunctionModel>

<h2>Function</h2>
@Html.ActionLink("Back", "Index", "Home")
@Html.ActionLink("Create", "Add")
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(f => f.FunctionName)
        </th>
        <th>
            @Html.DisplayNameFor(f => f.FunctionUrl)
        </th>
        <th>
            @Html.DisplayNameFor(f => f.FunctionEnabled)
        </th>
        <th>
            @Html.DisplayNameFor(f => f.IgnoreControl)
        </th>
        <th>
            @Html.DisplayNameFor(f => f.InMenu)
        </th>
        <th>
            @Html.DisplayNameFor(f => f.ParentFunctionName)
        </th>
        <th>
            @Html.DisplayNameFor(f => f.MenuLevel)
        </th>
        <th>
            @Html.DisplayNameFor(f => f.MenuOrder)
        </th>
        <th>
        </th>
    </tr>
    @foreach (var function in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(m => function.FunctionName)
            </td>
            <td>
                @Html.DisplayFor(m => function.FunctionUrl)
            </td>
            <td>
                @Html.DisplayFor(m => function.FunctionEnabled)
            </td>
            <td>
                @Html.DisplayFor(m => function.IgnoreControl)
            </td>
            <td>
                @Html.DisplayFor(m => function.InMenu)
            </td>
            <td>
                @Html.DisplayFor(m => function.ParentFunctionName)
            </td>
            <td>
                @Html.DisplayFor(m => function.MenuLevel)
            </td>
            <td>
                @Html.DisplayFor(m => function.MenuOrder)
            </td>
            <td>
                @Html.ActionLink("Actions", "Index", "Action", new {function.Id}, null)
                @Html.ActionLink("Edit", "Edit", new {function.Id})
                @Html.ActionLink("Delete", "Delete", new {function.Id})
            </td>
        </tr>
    }
</table>